﻿/***************************************************************************
 * 文件名：CardVerifiMessage
 * 功能：
 * 说明：
 * -------------------------------------------------------------------------
 * 创建时间：2024/5/29 14:08:40
 * 创建人：金文旭
 * 邮箱： ohayashi@163.com
 * =========================================================================
 *
 * 修改人：   
 * 修改时间：   
 * 修改说明：   
 ***************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CardVerification.NewPlan
{
    public class CardVerifiMessage
    {
        public bool ToBoolean()
        {
            if (Code == CardVerifiCode.Success)
            {
                return true;
            }
            return false;
        }
        public enum CardVerifiCode
        {
            Success,
            VerifyFail,
            PortException
        }
        private CardVerifiCode code;
        private string message;
        public CardVerifiCode Code {  get { return code; } set { code = value; } }
        public string Message { get { return message; } set { message = value; } }
        public CardVerifiMessage(CardVerifiCode code, string message)
        {
            this.code = code;
            this.message = message;
        }
    }
}
